<?
class Biz_User{
    //获得全部用户数据
    function getAllUser(){
        $cache_key	= "ZC_user_s";
        $datas		= Lib_Cache::get($cache_key);
        if(!$datas){
            $user = new Data_User();
            $res = $user->getAllUser();
            if(count($res['result']) >0){
                $datas = $res['result'];
            }
            Lib_Cache::set($cache_key,$datas);
        }
        return $datas;
    }
    function checkTeamId($teamid){
        $user = new Data_User();
        $res = $user->checkTeamId($teamid);
        if(count($res['result']) >0){
            return false;
        }else {
            return true;
        }
    }
    function getUserFilter($filter){
        $user = new Data_User();
        $res = $user->getUserFilter($filter);
        if(count($res['result']) >0){
            return $res['result'][0];
        }else {
            return false;
        }
    }
}
?>